<form nz-form #validateForm="ngForm" (ngSubmit)="submitForm()" nzLayout="horizontal" autocomplete="off">
    <!-- 模态框头部 -->
    <div class="modal-header">
        <div class="modal-title">
            <i class="iconfont icon-medicine-box mr-sm"></i>
            <span *ngIf="entity.id">{{l('Edit')}}</span>
            <span *ngIf="!entity.id">{{l('Create')}}</span>
        </div>
    </div>
    <!-- 模态框内容 -->
    <fieldset>
        <!-- 提示信息 -->
        <!-- <nz-alert nzType="info" nzCloseable [nzShowIcon]="true" nzMessage="l('我想提示点什么内容给你说')"></nz-alert> -->
        <!-- Name : Name 的控件范围=Start= -->
        <nz-form-item nz-row>
            <nz-form-label nz-col [nzSm]="6" [nzXs]="24" nzRequired nzFor="name">
                {{l('CollegeName')}}
            </nz-form-label>
            <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                <!--  控件位置 -->
                <input nz-input name="name" #name="ngModel" [(ngModel)]="entity.name"
                    [placeholder]="l('CollegeNameInputDesc')" required>

                <!-- 校验 -->
                <nz-form-explain *ngIf="name.control.dirty&&name.control.errors">
                    <ng-container *ngIf="name.control.hasError('required')">{{l('ThisFieldIsRequired')}}</ng-container>
                </nz-form-explain>

            </nz-form-control>

        </nz-form-item>
        <!--Name : Name 的控件范围结束=END= -->
        <!-- Sort : Sort 的控件范围=Start= -->
        <nz-form-item nz-row>
            <nz-form-label nz-col [nzSm]="6" [nzXs]="24" nzRequired nzFor="sort">
                {{l('Sort')}}
            </nz-form-label>
            <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                <!--  控件位置 -->
                <nz-input-number name="sort" #sort="ngModel" [(ngModel)]="entity.sort" [nzMin]="0" [nzMax]="1000000"
                    [nzStep]="1"></nz-input-number>
                <!-- 校验 -->
                <nz-form-explain *ngIf="sort.control.dirty&&sort.control.errors">
                    <ng-container *ngIf="sort.control.hasError('required')">{{l('ThisFieldIsRequired')}}</ng-container>
                </nz-form-explain>
            </nz-form-control>
        </nz-form-item>
        <!--Sort : Sort 的控件范围结束=END= -->

        <!-- Status : Status 的控件范围=Start= -->
        <nz-form-item nz-row>
            <nz-form-label nz-col [nzSm]="6" [nzXs]="24" nzRequired nzFor="status">
                {{l('Status')}}
            </nz-form-label>
            <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                <!--  控件位置 -->
                <nz-select name="status" #status="ngModel"
                    [nzPlaceHolder]="l('PleaseSelectAtLeastOneItem')" required style="width: 120px;" [(ngModel)]="entity.status">
                    <!-- 请配置你的数据源 -->
                    <nz-option *ngFor="let option of statusList" [nzValue]="option.value" [nzLabel]="option.text">
                    </nz-option>
                </nz-select>

                <!-- 校验 -->
                <nz-form-explain *ngIf="status.control.dirty
                                 &&status.control.errors">
                    <ng-container *ngIf="status.control.hasError('required')">{{l('ThisFieldIsRequired')}}
                    </ng-container>
                </nz-form-explain>

            </nz-form-control>

        </nz-form-item>
        <!--Status : Status 的控件范围结束=END= -->

    </fieldset>
    <!-- 模态框底部 -->
    <div class="modal-footer">
        <button nz-button [nzType]="'default'" type="button" (click)="close()" [disabled]="saving">
            <i class="iconfont icon-close-circle"></i> {{l("Cancel")}}
        </button>
        <button nz-button [nzType]="'primary'" type="submit" [disabled]="!validateForm.form.valid|| saving"
            [nzLoading]="saving">
            <i class="iconfont icon-save" *ngIf="!saving"></i> {{l("Save")}}
        </button>
    </div>
</form>
